﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;

namespace DAO
{
    public class CommonDAL
    {
        public CommonDAL()
        {
        }
        public string GetConnectString()
        {
            return @"server=DOANMT00003\SQLEXPRESS2005;database=AnimalFarm;Integrated Security=true";
        }
        public SqlConnection GetConnection()
        {
            SqlConnection objConnetion = new SqlConnection(this.GetConnectString().Trim());
            return objConnetion;
        }
    }
}
